$(function () {

    getReviewers({
        standard: 0,
        visitors: 0,
        receptions: 0
    });

    $('.is-date').datetimepicker({
        language: 'zh-CN',
        format: 'yyyy-mm-dd hh:ii',
        autoclose: true,
        todayBtn: true,
        todayHighlight: true
    });

    $('.dining-standard').bind('input propertychange', function (e) {
        var standard = $.trim(e.target.value),
            visitors = $.trim($('.visitors-number').val()),
            receptions = $.trim($('.receptions-number').val());

        throttle(getReviewers, null, approvalConfigs.delay, {
            standard: standard,
            visitors: visitors,
            receptions: receptions
        })
    });
});